package com.hnchances.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author testjava
 * @since 2022-08-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Grades对象", description="")
public class Grades implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id,key，自增")
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "课程关联id")
    @TableField("courseID")
    private String courseID;

    @ApiModelProperty(value = "考试关联id")
    @TableField("examID")
    private Integer examID;

    @ApiModelProperty(value = "班级关联id")
    @TableField("classID")
    private Integer classID;

    @ApiModelProperty(value = "成绩")
    private BigDecimal grades;

    @TableLogic(value = "0",delval = "1")
    @ApiModelProperty(value = "0-正常，1-删除")
    private Integer status;


}
